//
//  PilotPageViewController.h
//  EVETracker
//
//  Created by Scott Guyer on 7/16/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class Character;
@class EVEApi;
@class EVEPortraitService;
@class PilotTabViewController;
@class RootPilotViewController;

@interface PilotPageViewController : UIViewController 
{	
	NSUInteger                idx;
	
	IBOutlet UIImageView*     pilotPortrait;
	IBOutlet UILabel*         pilotNameLabel;
	IBOutlet UILabel*         corpLabel;
	IBOutlet UILabel*         raceLabel;

	IBOutlet UILabel*         iskiesValue;
	IBOutlet UILabel*         skillpointsValue;
	IBOutlet UILabel*         attValue;
	IBOutlet UILabel*         iskiesHdr;
	IBOutlet UILabel*         skillpointsHdr;
	IBOutlet UILabel*         attHdr;
	
	IBOutlet UILabel*         trainingSkillLabel;
	IBOutlet UILabel*         endDateLabel;
	IBOutlet UIProgressView*  progressView;
	
	IBOutlet UIButton*        reloadButton;
	IBOutlet UIButton*        cancelButton;
	IBOutlet UIButton*        skillsDetailButton;
	IBOutlet UIButton*        configButton;	
	
	IBOutlet UILabel*         statusLine;
	
	Boolean                   displayRemaining;
	
	Boolean                   portraitNeedsReload;
//	NSDictionary*             skillTrainingDict;
	Character*                pilot;
	EVEApi*                   eveRequestHandle;
	EVEApi*                   eveSkillsHandle;
	EVEPortraitService*       eveImgSvc;
	PilotTabViewController*   parentVC;
	RootPilotViewController*  rootPilotVC;
}

@property(nonatomic,assign) NSUInteger   idx;
@property(nonatomic,retain) UILabel*     pilotNameLabel;
@property(nonatomic,retain) UILabel*     corpLabel;
@property(nonatomic,retain) UILabel*     raceLabel;
@property(nonatomic,retain) UILabel*     iskiesValue;
@property(nonatomic,retain) UILabel*     attValue;
@property(nonatomic,retain) UILabel*     skillpointsValue;
@property(nonatomic,retain) UILabel*     iskiesHdr;
@property(nonatomic,retain) UILabel*     attHdr;
@property(nonatomic,retain) UILabel*     skillpointsHdr;
@property(nonatomic,retain) UIProgressView* progressView;
@property(nonatomic,retain) UILabel*     trainingSkillLabel;
@property(nonatomic,retain) UILabel*     endDateLabel;
@property(nonatomic,retain) UIButton*    reloadButton;
@property(nonatomic,retain) UIButton*    cancelButton;
@property(nonatomic,retain) UIButton*    skillsDetailButton;
@property(nonatomic,retain) UIButton*    configButton;
@property(nonatomic,retain) PilotTabViewController* parentVC;
@property(nonatomic,retain) RootPilotViewController* rootPilotVC;
@property(nonatomic,retain) UILabel*     statusLine;

//@property(nonatomic,retain) NSDictionary* skillTrainingDict;
@property(nonatomic,assign) Character*   pilot;
@property(nonatomic,assign) Boolean      portraitNeedsReload;

- (void) reloadData;
- (void) reloadPilotData;
- (void) reloadSkillData;
- (void) enableReloadButton;
- (void) enableCancelButton;


@end
